<!DOCTYPE HTML>
<html>
<head>
<!--_meta 作为公共模版分离出去-->
{include file="public/meta"}
<!--/meta 作为公共模版分离出去-->
    <title>作者后台</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
</head>
<body>
<!--_menu 作为公共模版分离出去-->
<aside class="Hui-admin-aside-wrapper">
    <div class="Hui-admin-logo-wrapper">
        <a class="logo navbar-logo" href="/author/index/index">
            <i class="va-m iconpic global-logo"></i>
            <span class="va-m">辰星中文网作者后台</span>
        </a>
    </div>
    <div class="Hui-admin-menu-dropdown bk_2">
        <dl id="menu-article" class="Hui-menu">
            <dt class="Hui-menu-title"><i class="Hui-iconfont">&#xe616;</i> 书籍管理<i class="Hui-iconfont Hui-admin-menu-dropdown-arrow">&#xe6d5;</i></dt>
            <dd class="Hui-menu-item">
                <ul>
                    <li><a data-href="/author/book/index" data-title="书籍列表" href="javascript:void(0)">书籍列表</a></li>
                </ul>
            </dd>
        </dl>
        <dl id="menu-picture" class="Hui-menu">
            <dt class="Hui-menu-title"><i class="Hui-iconfont">&#xe613;</i> 我的书籍<i class="Hui-iconfont Hui-admin-menu-dropdown-arrow">&#xe6d5;</i></dt>
            <dd class="Hui-menu-item">
                <ul id="dataList">
                    <!--{if empty($book)}{else/}
                    {volist name="book" id="vo"}
                    <li><a data-href="/author/my_book/index/book_id/{$vo.id}" data-title="{$vo.name}" href="javascript:void(0)">{$vo.name}</a></li>
                    {/volist}
                    {/if}-->
                </ul>
            </dd>
        </dl>
        <dl id="menu-article" class="Hui-menu">
            <dt class="Hui-menu-title"><i class="Hui-iconfont">&#xe616;</i> 定时章节<i class="Hui-iconfont Hui-admin-menu-dropdown-arrow">&#xe6d5;</i></dt>
            <dd class="Hui-menu-item">
                <ul>
                    <li><a data-href="/author/crontab_chapter/index" data-title="章节列表" href="javascript:void(0)">章节列表</a></li>
                </ul>
            </dd>
        </dl>
    </div>
</aside>
<div class="Hui-admin-aside-mask"></div>
<!--/_menu 作为公共模版分离出去-->

<div class="Hui-admin-dislpayArrow">
    <a href="javascript:void(0);" onClick="displaynavbar(this)">
        <i class="Hui-iconfont Hui-iconfont-left">&#xe6d4;</i>
        <i class="Hui-iconfont Hui-iconfont-right">&#xe6d7;</i>
    </a>
</div>

<section class="Hui-admin-article-wrapper">
    <!--_header 作为公共模版分离出去-->
{include file="public/header"}
    <!--/_header 作为公共模版分离出去-->

    <div id="Hui-admin-tabNav" class="Hui-admin-tabNav">
        <div class="Hui-admin-tabNav-wp">
            <ul id="min_title_list" class="acrossTab clearfix" style="width: 241px; left: 0px;">
                <li class="active"><span title="我的桌面" data-href="welcome.html">我的桌面</span><em></em></li>
            </ul>
        </div>
        <div class="Hui-admin-tabNav-more btn-group" style="display: none;">
            <a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a>
            <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a>
        </div>
    </div>

    <div id="iframe_box" class="Hui-admin-article">
        <div class="show_iframe">
            <iframe id="iframe-welcome" data-scrolltop="0" scrolling="yes" frameborder="0" src="/author/index/welcome"></iframe>
        </div>
    </div>
</section>
<div class="contextMenu" id="Huiadminmenu">
    <ul>
        <li id="closethis">关闭当前 </li>
        <li id="closeother">关闭其他 </li>
        <li id="closeall">关闭全部 </li>
    </ul>
</div>
<!--_footer 作为公共模版分离出去-->
{include file="public/footer"}
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/author/static/business/js/main.js"></script>
</body>
<script>
    $("#menu-picture").click(function(){

        $.post("/author/index/index_menu",function(data){
            // console.log(data.book.length);
            // $('#dataList').html();
            var tbBody = "";
            for(var i=0;i<data.book.length;i++){
                console.log(data.book[i].id);
                // tbBody += "<li><a data-href=""/author/my_book/index/book_id/"+data.book[i].id+ "data-title="+data.book[i].name+">+'data.book[i].name'+</a></li>";
                tbBody += '<li>'+'<a data-href="/author/my_book/index/book_id/'+data.book[i].id+'" data-title="'+data.book[i].name+'" href="javascript:void(0)">'+data.book[i].name+'</a>'+'</li>';
                // $('#dataList').append('');
            }
            // if(tbBody == null || tbBody == ''){
            //     $('#dataList').append(tbBody);
            // }
            $('#dataList').html(tbBody);

        });

    });
</script>
<script>
    $.get("/index/index/crontab",function(){});
</script>
</html>
